<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>药品查询</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script src="<%=basePath%>js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>js/jquery.uniform.js" type="text/javascript"></script>
    <script type="text/javascript" src="<%=basePath%>js/flexigrid.pack.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/Medicinelist.js"></script>
    <script src="<%=basePath%>js/jExpand.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/flexigrid.pack.css"/>
    <link rel="stylesheet" href="<%=basePath%>css/style.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="<%=basePath%>css/slide.css" type="text/css" media="screen"/>
    <script src="<%=basePath%>js/slide.js" type="text/javascript"></script>

</head>

<body>
<!-- Login -->
<div id="toppanel">
    <div class="tab">
        <ul class="login">
            <li class="left">&nbsp;</li>
            <li>欢迎您,管理员</li>
            <li class="sep">|</li>
            <li id="toggle">
                <a id="close" class="close" href="">退出</a>
            </li>
            <li class="right">&nbsp;</li>
        </ul>
    </div>
</div>
<div id="container">
    <div id="content" style="padding-top:150px;">
        <div class="newsletter_area">
            <div id="msgemail2"></div>
            <form id="f_sending3" name="f_sending3" action="Medicine!fuzzySearch.action" method="post">
                <input type="hidden" name="flag" id="flag" value="admin"/>
                <label for="value"></label>
                <input name="value" class="email required" value="请输入搜索内容"
                       id="value" onmouseover="this.select();" type="text">
                <input id="newsletter_submit" value="" type="submit">
            </form>
        </div>
        <form id="myform" name="myform" action="Medicine!deleteMedicine.action" method="post">
            <input type="hidden" name="search" id="search" value="${search}"/>
            <table id="flexme1">
                <thead id="nihao">
                <tr>
                    <th width="52">序号</th>
                    <th width="200">药品名称</th>
                    <th width="227">药品英文名</th>
                    <th width="60">分类</th>
                    <th width="160">药品类别</th>
                </tr>
                </thead>
                <tbody>
                <s:iterator value="medicines" var="m" status="n">
                    <tr>
                        <td>
                            <label>
                                <input type="checkbox" value="${m.id}" name="medicinesIds" id="medicinesIds">
                            </label>
                            <s:property value="#n.index+1"/>
                        </td>
                        <td>${m.medicineName}</td>
                        <td>${m.medicineEnglishName}</td>
                        <td>${m.type}</td>
                        <td>${m.sort}</td>
                        <td><a href="Medicine!loadMedicine.action?id=${m.id}" id="edit">
                            <img src="<%=basePath%>images/edit.gif" width="15" height="16" border="0"
                                 alt="编辑"/>编辑</a></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <ul>
                                性状：
                                <li>${m.characters}&nbsp;</li>
                            </ul>
                            <ul>
                                用量用法：
                                <li>${m.dosage}&nbsp;</li>
                            </ul>
                            <ul>
                                适应症：
                                <li>${m.adaptation}&nbsp;</li>
                            </ul>
                            <ul>
                                成分：
                                <li>${m.components}&nbsp;</li>
                            </ul>
                            <ul>
                                不良反应：
                                <li>${m.sideEffects}&nbsp;</li>
                            </ul>
                            <ul>
                                禁忌：
                                <li>${m.taboo}&nbsp;</li>
                            </ul>
                            <ul>
                                注意事项：
                                <li>${m.caution}&nbsp;</li>
                            </ul>
                        </td>
                    </tr>
                </s:iterator>
                </tbody>
            </table>
        </form>
    </div>

</div>

</body>
</html>
